/**
*
*	\file timer32.h
*	\author Manish Shakya 
*	\brief
*	\date  Tuesday,October 27,2009
*	\version 1.0
*
*
*/
#ifdef __TIMER32__

typedef struct
{
    uint32_t PR;
    uint16_t MCR;
    uint32_t MR0;
    uint32_t MR1;
    uint32_t MR2;
    uint32_t MR3;
}timer_settings_s;

void lpc_timer32_init(uint32_t timer,timer_settings_s * ptr, void (* handler)(void)__irq );

void timer32_init(void);
void timer32_match_isr_enable(uint32_t timer, uint32_t match_register);
void timer32_match_isr_disable(uint32_t timer, uint32_t match_register);
void timer32_enable(uint32_t timer);
void timer32_disable(uint32_t timer);
#endif
